package com.zxj.schoolxianyu.service;

import com.zxj.schoolxianyu.dao.collectDao;
import com.zxj.schoolxianyu.entity.collect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class collectService {
    @Autowired(required = false)
    private collectDao collectDao;

    public String collect(String username, Integer goodsid) {
        collect c = new collect();
        c.username = username;
        c.goodsid = goodsid;
        collectDao.insert(c);
        return "success";
    }
}
